<%@page import="br.senai.sc.entity.Aluno"%>
<%@page import="java.util.List"%>
<%@page import="br.senai.sc.controller.AlunoController"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<a href="${pageContext.request.contextPath}/cadastros/cadAluno.jsp"> Inserir Novo
		
	</a> 
	<br />
	
	<table border="1">
		<tr><td>Matricula</td><td>Nome</td><td>CPF</td><td>Endereco</td><td>Email</td><td>Telefone</td></tr>
		<c:forEach items="${alunos}" var="aluno">
			<tr>
				<td>${aluno.matricula}</td>
				<td>${aluno.nome}</td>
				<td>${aluno.cpf}</td>
				<td>${aluno.endereco}</td>
				<td>${aluno.email}</td>
				<td>${aluno.telefone}</td>
				<td>
					<a href="editarAluno?cmd=editarAluno&matricula=${aluno.matricula}">Editar</a>
					
					<a href="excluirAluno?cmd=excluirAluno&matricula=${aluno.matricula}">Excluir</a>
					 
					
				</td>
			</tr>
			
		</c:forEach>
	</table>

</body>
</html>